package com.zgh.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bbs")
public class Bbs implements Serializable {
    private static final long serialVersionUID=1L;

    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String title;
    private String content;
    @TableField("coverUrl")
    private String coverUrl;
    @TableField("userId")
    private int userId;
    private int views;
    private int thumbs;
    private String author;
    @TableField(value = "releaseTime",fill = FieldFill.INSERT)
    private String releaseTime;
    @TableField("partitionName")
    private String partitionName;
    @TableField("provinceId")
    private int provinceId;
    @TableField("provinceName")
    private String provinceName;
    private int comments;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private List<BbsComment> bbsCommentList;
}
